package com.sanhuo.lib.exception;

/**
 * 统一异常处理
 */
public class GlobalException extends  RuntimeException {

    private Integer code;

    public GlobalException(String msg){

        super(msg);

    }



    public GlobalException(Integer code, String msg){

        super(msg);

        this.code=code;

    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
